package com.waves.core.constant;

/**
 * 数据库常用
 **/
public class DbConstants {

    /**
     * 当前记录起始索引
     */
    public static final String PAGE_NUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public static final String PAGE_SIZE = "pageSize";

    /**
     * 排序列
     */
    public static final String ORDER_BY_COLUMN = "orderByColumn";
    public static final String LIMIT_ONE = "limit 1";

    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static final String IS_ASC = "isAsc";
    /**
     * 根节点
     */
    public static final Long PARENT_ROOT_ID = 0L;
    /**
     * 系统默认值
     */
    public static final Long DEFAULT_LONG_VALUE = -1L;
    public static final Integer DEFAULT_INT_VALUE = -1;
    public static final Integer IS_DELETE_FLAG = 1;

    /**
     * 开启
     */
    public static final Integer ENABLE = 0;
    /**
     * 是
     */
    public static final Integer YES = 0;
    /**
     * 否
     */
    public static final Integer NO = 1;
    public static final Integer DEFAULT_INT_ONE = 0;
    public static final Long DEFAULT_LONG_ENABLE = 0L;
    public static final String UNIQUE_COLUMN = "code";
    public static final String ID = "id";
    public static final String TABLE_NAME = "tableName";
    public static final String DEL_FLAG = "delFlag";

}
